package com.situ.crm.mapper;

import com.situ.crm.pojo.entity.UserRole;
import com.situ.crm.pojo.entity.UserRoleKey;

import java.util.List;

public interface UserRoleMapper {
    int deleteByPrimaryKey(UserRoleKey key);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(UserRoleKey key);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);
    
    void deleteByUserId(Integer id);

	List<Integer> selectRolesByUserId(Integer userId);

    Integer selectXiaoShouRoleCountByUserId(Integer id);
}